package cn.madis.ymcc.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CoursePlaceOrderVo {
        //正常下单参数
        private List<Long> courseIds;//课程ids
        @NotNull(message = "支付方式为空")
        private Integer payType; //支付方式
        @NotEmpty(message = "token为空")
        private String token;//token
        private Integer type;//普通订单or秒杀订单

        //秒杀下单额外参数
        private String orderNo;
}
